<%@page import="Data.TblTudienDonvihanhchinh"%>
<%@page import="DAO.tblTuDiendonviDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<% 
	String tinh = null;
	if(request.getParameter("q")!=null){
		tinh = request.getParameter("q");
		tblTuDiendonviDAO objDAO_5 = new tblTuDiendonviDAO();
		TblTudienDonvihanhchinh[] list_tenhuyen = null;
		list_tenhuyen = objDAO_5.getHuyenbyTinh(Integer.parseInt(tinh));
		%>
		<select name="slHuyen" id="slHuyen" >
			<option value="">--Chọn Huyện--</option> 
		<% 
		for(int i=0;i<=list_tenhuyen.length-1;i++){
			TblTudienDonvihanhchinh obj_huyen = list_tenhuyen[i]; 
			%>
				<option value="<%=obj_huyen.getMaHuyen() %>"><%=obj_huyen.getTen() %></option>
			<% 
 			} 
		%>
 		</select>
 		<%
 		}
 	%>

